* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
ul,li {
    list-style: none;
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}
body {
    background-color: #efefef;
}
/*topNavBar --s*/
.topNavBar {
    padding: 20px 0px;
    position: fixed;
    z-index: 10;
    width:100%;
    transition: all 1s;
}
.topNavBar.scroll {
    background-color: white;
    box-shadow: 0 0 1px 3px grey;
    padding: 10px 0;
}

.topNavBar .logo {
    float: left;
    font-family: "Arial Black";
    font-size: 24px;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    margin-left: 17px;
}

.topNavBar .logo .rs {
    color: rgb(230, 104, 106);
}

.topNavBar .logo .card {
    color: rgb(154, 157, 162);

}

.topNavBar nav {
    float: right;
}

.topNavBar nav>ul>li {
    float: left;
    margin: 0 17px;
    position: relative;
}

.topNavBar nav>ul>li>a {

    font-size: 12px;
    color: rgb(183, 183, 183);
    display: block;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
}

.topNavBar nav .submenu {
    display: none;
}

.topNavBar nav li.active .submenu {
    display: block;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    animation: submenuSlide .5s;
}

@keyframes submenuSlide {
    0% {
        right:100%;
        opacity: 0;
    }
    100% {
        right: 0;
        opacity: 100%;
    }
}

.topNavBar nav .submenu li{
    white-space: nowrap;
    padding: 0 10px;
    cursor: pointer;
    transition: all 1s;
}

.topNavBar nav .submenu li:hover {
    background-color: yellowgreen;
}

.topNavBar nav>ul>li.active::after,
.topNavBar nav>ul>li.highlight::after,
.topNavBar nav>ul>li.act::after{
    content: '';
    display: block;
    height: 3px;
    width:100%;
    position: absolute;
    top: 32px;
    background: #e06567;
    animation: menuSlide .5s;
}
@keyframes menuSlide {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* topNavBar--end */
/* banner --s */
.banner {
    height: 515px;
    background-image: url(../image/banner-bg.jpg);
    background-size: cover;
    background-position: -50% center;
}

.banner .mask {
    height: 515px;
    background-color: rgba(0, 0, 0, 0.7);
}
/* banner --end */
/* 进入动画类开始 */
[data-x]{
    transform: translateY(0px);
    transition: all 1s;
}
[data-x].slide{
    transform: translateY(100px);
}
/* 进入动画类结束 */
/* main --s */
main {
    margin-top: -345px;
}

main .card {
    max-width: 940px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0px 2px 5px 1px #A8A8A8;
}

main .card .picture {
    float: left;
    margin: 50px 65px 55px 50px;
}

main .card .text {
    float: left;
    margin-top: 50px;
    width: 470px;
}

main .card .text .welcome {
    display: inline-block;
    background-color: rgb(230, 104, 106);
    padding: 4px 16px;
    position: relative;
    margin-bottom: 18px;
    color: white;
}

main .card .text .welcome .triangle {
    display: block;
    width: 0px;
    border: 10px solid transparent;
    border-left-color: rgb(230, 104, 106);
    border-top: none;
    position: absolute;
    top: 100%;
    left: 4px;
}

main .card hr {
    height: 0;
    border: none;
    border-top: 1px solid #DEDEDE;
    margin: 20px 0;
}

main .card .text dl {
    font-size: 20px;
}

main .card .text dl dt,
main .card .text dl dd {
    float: left;
    margin: 8px 0;
}

main .card .text dl dt {
    width:30%;
    font-weight: bold;
}

main .card .text dl dd {
    width: 70%;
}

main .card footer {
    background-color: #E6686A;
    text-align: center;
}
main .card footer a {
    display: inline-block;
    width: 40px;
    padding: 5px 0;
    border-radius: 50%;
    margin: 10px 16px;
}

main .card footer a:hover {
    background-color: #CF5D5F;
}

main .card footer svg {
    width: 30px;
    height: 30px;
    fill: white;
}

main .downloadResume {
    text-align: center;
}

main .downloadResume a {
    display: inline-block;
    font-size: 14px;
    color: #3D4451;
    font-weight: bold;
    width: 200px;
    line-height: 60px;
    border:1px solid #CDCFD1;
    border-radius:2px;
    vertical-align: top;
    margin-top: 32px;
    letter-spacing: 8px;
}

main .downloadResume a:hover {
    box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.3);
    transform: all 0.5s;
}

main .selfIntroduction {
    max-width: 940px;
    margin: 32px auto 60px auto;
    text-align: center;
    font-family: "楷体";
    line-height: 1.8;
}
/* main--end */
/* skills--s */
section {
    max-width: 940px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
}

section.skills ol {
    background-color: #fff;
    padding-top: 42px;
    padding-bottom: 23px;
    margin-bottom: 65px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.5);
}

section.skills ol li {
    box-sizing: border-box;
    float: left;
    width: 50%;
    padding-bottom: 26px;
}
section.skills ol li:nth-child(odd) {
    padding-left: 50px;
    padding-right: 25px;
}

section.skills ol li:nth-child(even) {
    padding-left: 25px;
    padding-right: 50px
}

section.skills .expBar {
    height: 5px;
    background-color: #FAE1E1;
    border-radius: 2px;
    overflow: hidden;
}

section.skills .exp {
    background-color: #E6686A;
    height: 100%;
    width: 50%;
    border-radius: 2px;
    transition: all 2s;
}

section.skills li:nth-of-type(1) .exp,
section.skills li:nth-of-type(2) .exp,
section.skills li:nth-of-type(3) .exp {
    width: 75%;
}

section.slide.skills .exp {
    transform: translate(-100%);
}

/* skills --end */
/* works --s */
section.works {
    margin-bottom: 60px;
}

section.works nav ol {
    text-align: center;
}

section.works nav li {
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    padding: 0 21px;
    font-size: 16px;  
}
/* works --end */
/* messageBoard --s */
section.messageBoard {
    background-color: wheat;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.5);
    margin-bottom: 60px;
}
section.messageBoard>h2 {
    padding-top: 30px;
}
section.messageBoard>ol {
    margin: 0 50px 50px 50px;
}
section.messageBoard>ol>li{
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 0 2px wheat;
}
section.messageBoard>ol>li>span {
    color: turquoise;
}
section.messageBoard>ol>li>p{
    margin: 0 60px;
}
section.messageBoard>form {
    /* margin: 0 50px; */
    padding: 50px;
    vertical-align: bottom;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: darkseagreen; */
    background: linear-gradient(to top,wheat,darkseagreen);
    position: relative;
}
section.messageBoard>form textarea {
    width: calc(100% - 40px);
    line-height: 1.5em;
    height: 200px;
    padding: 20px;
}
section.messageBoard>form input {
    text-align: center;
    height: 30px;
    width: 200px;
    margin: 20px 0 5px 0;
}
section.messageBoard>form button {
    height: 34px;
    width: 204px;
    margin-bottom: 20px;
    cursor: pointer;
}
.picture>img{
    border-radius: 10px;
}